﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.BasicData.Clients.Dto;
using WMS.Pagination;

namespace WMS.BasicData.Clients
{
    /// <summary>
    /// 客户服务接口
    /// </summary>
    public interface IClientAppService : IApplicationService
    {
        /// <summary>
        /// 添加客户信息
        /// </summary>
        /// <param name="clientDto">客户Dto</param>
        /// <returns>返回结果</returns>
        Task<int> Insert(ClientDto clientDto);
        /// <summary>
        /// 显示客户信息
        /// </summary>
        /// <param name="pageIndex">当前页</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="chineseName">中文名称</param>
        /// <returns>返回结果</returns>
        Task<PageResult> GetInquire(int pageIndex, int pageSize, string? chineseName);
        /// <summary>
        /// 删除客户信息
        /// </summary>
        /// <param name="ids">客户编号</param>
        /// <returns>返回结果</returns>
        Task<int> Deleted(string ids);
        /// <summary>
        /// 编辑客户信息
        /// </summary>
        /// <param name="clientDto">客户Dto</param>
        /// <returns>返回结果</returns>
        Task<int> Update(ClientDto clientDto);
    }
}
